﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TrangChu.Master" AutoEventWireup="true" CodeBehind="ThongTinDatVe.aspx.cs" Inherits="Airplane.ThongTinDatVe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <style type="text/css">
    .style1
    {
        width:25%;
        color: Maroon;
        font-family:Arial;
        font-size:medium;
    }
    .style2
    {
        width:70%;
    }
</style>
   <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
<div style="width:100%; text-align:center; color:Red;">

    <br />
    <h2> Thông tin đặt vé</h2>
    </div>

  <table style="width:80%; margin-left:80px; font-family:@Arial Unicode MS; font-size:medium">
        <tr>
        <td class="style1">Mã Chuyến bay
        </td>
        <td class="style2">
            <asp:TextBox ID="txtMaChuyenBay" runat="server" Width="243px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Chưa nhập Mã chuyến may" ForeColor="Red" ControlToValidate="txtMaChuyenBay"></asp:RequiredFieldValidator>
        </td>
        </tr>
        <tr>
        <td class="style1">Ngày đi
        </td>
        <td class="style2">
            <asp:TextBox ID="txtNgayDi" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr id="trChuyenBayVe">
        <td class="style1">ChuyenBayVe
        </td>
        <td class="style2">
            <asp:TextBox ID="txtChuyenBayVe" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr id="trNgayVe">
        <td class="style1">Ngày về
        </td>
        <td class="style2">
            <asp:TextBox ID="txtNgayVe" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr id="trChangBay">
        <td class="style1">Chặng Bay
        </td>
        <td class="style2">
            <asp:TextBox ID="txtMaChangBay" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td class="style1">Số lượng Người Lớn
        </td>
        <td class="style2">
            <asp:TextBox ID="txtNguoiLon" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td class="style1">Số lượng Trẻ em
        </td>
        <td class="style2">
            <asp:TextBox ID="txtTreEm" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td class="style1">Số lượng em bé
        </td>
        <td class="style2">
            <asp:TextBox ID="txtEmBe" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td class="style1">Hạng vé
        </td>
        <td class="style2">
            <asp:TextBox ID="txtHangVe" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr><td colspan="2"></td></tr>
        <tr>
        <td class="style1">Số thẻ hội viên
        </td>
        <td class="style2">
            <asp:TextBox ID="txtSoHoiVien" runat="server" Width="243px" AutoPostBack="True" 
                ontextchanged="txtSoHoiVien_TextChanged"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td class="style1">Số CMND hoặc Hộ chiếu
        </td>
        <td class="style2">
            <asp:TextBox ID="txtCMND" runat="server" Width="243px"></asp:TextBox> 
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Chưa nhập giấy tờ" ForeColor="Red" ControlToValidate="txtCMND"></asp:RequiredFieldValidator>
        </td>
        </tr>
        <tr>
        <td class="style1">Tên của bạn
        </td>
        <td class="style2">
            <asp:TextBox ID="txtHoTen" runat="server" Width="243px"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Chưa nhập họ tên" ForeColor="Red" ControlToValidate="txtHoTen"></asp:RequiredFieldValidator>
        </td>
        </tr>
         
         <tr>
        <td class="style1">Số điện thoại
        </td>
        <td class="style2">
            <asp:TextBox ID="txtSoDienThoai" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
         <tr>
        <td class="style1">Email
        </td>
        <td class="style2">
            <asp:TextBox ID="txtEmail" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr> 
        <tr>
        <td class="style1">Địa chỉ
        </td>
        <td class="style2">
            <asp:TextBox ID="txtDiaChi" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td class="style1">Số credit card
        </td>
        <td class="style2">
            <asp:TextBox ID="txtSoCreditCard" runat="server" Width="243px"></asp:TextBox>
        </td>
        </tr>                
        <tr>
            <td colspan="2" style="text-align:center;"><asp:Button ID="btnDatVe" runat="server" 
                    Text="Đặt vé" Font-Names="Arial" Font-Size="Large" ForeColor="#3333CC" 
                    onclick="btnDatVe_Click" /></td>
        </tr>
        </table>
</asp:View>
<asp:View ID= "View2" runat="server">
<table style="width:80%; margin-left:80px; font-family:@Arial Unicode MS; font-size:medium">
        <tr>
            <td colspan="2" style="text-align:center;">
               <asp:Label ID="lbKetQua" runat="server" Text=""></asp:Label>
                </td>
        </tr>
    
        <tr>
            <td colspan="2" style="text-align:center;">
                <asp:Label ID="lbDatVe" runat="server" ForeColor="Red" Font-Size="Large"></asp:Label></td>
        </tr>
    
    
        <tr>
            <td style="text-align:center;">
                <asp:Label ID="lbTongTien" runat="server" ForeColor="Red" Font-Size="Large"></asp:Label></td>
        </tr>
       <tr>
            <td style="text-align:center;">
               Bấm vào <asp:HyperLink ID="hyperlink" runat="server" Font-Underline="false" NavigateUrl="~/TrangChu.aspx" ForeColor="Blue" > đây </asp:HyperLink> để quay lại trang chủ
               </td>
        </tr>
    
    </table>
    </asp:View>
    </asp:MultiView>
</asp:Content>
